//
//  RMMMemberCardSMViewController.m
//  Romomo
//
//  Created by puman on 16/10/18.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMMemberCardSMViewController.h"

@interface RMMMemberCardSMViewController ()

@end

@implementation RMMMemberCardSMViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kCColor;
    self.navigationItem.title = @"会员卡说明";
    [self addViews];
    // Do any additional setup after loading the view.
}
- (void)addViews{
    NSArray *titleArray = @[@"1.账号余额支付",@"2.账户余额使用"];
    NSArray *contentArr = @[@"“我的钱包”是您在容么么上的专用账户,账户内的金额是顾客在容么么购物后余下的现金或通过银行多余汇款的总和。",@"“我的钱包”是您在容么么上的专用账户,账户内的金额是顾客在容么么购物后余下的现金或通过银行多余汇款的总和。"];

    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWideth, 260)];
    view.backgroundColor = kWhiteColor;
    [self.view addSubview:view];
    for (int i = 0; i < 2; i++) {
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 14 + 110 * i, kScreenWideth - 30, kMaric)];
        titleLabel.textColor = COLORFROMCODE(0x2C2C2C, 1);
        titleLabel.font = kFont(16);
        titleLabel.text = titleArray[i];
        [view addSubview:titleLabel];
        
        UILabel *contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(titleLabel.left, titleLabel.bottom + kRow, kScreenWideth - 30, 70)];
        contentLabel.textColor = COLORFROMCODE(0x4A4A4A, 1);
        contentLabel.font = kFont(14);
        contentLabel.numberOfLines = 0;
        contentLabel.text = contentArr[i];
        [view addSubview:contentLabel];

        if (i == 0) {
            UILabel *lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, contentLabel.bottom, view.width - 30, 0.5)];
            lineLabel.backgroundColor = RGBA(221, 221, 221, 1);
            [view addSubview:lineLabel];

        }
    };
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
